package hb;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User  implements java.io.Serializable {


    // Fields    

     private Integer userId;
     private String userName;
     private String password;
     private String trueName;
     private Integer sex;
     private String year;
     private String month;
     private String day;
     private String contact;
     private Integer incoming;
     private Integer admin;
     private Set askRentLists = new HashSet(0);
     private Set houses = new HashSet(0);
     private Set rentOrders = new HashSet(0);
     private Set askRentOrders = new HashSet(0);


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(String userName, String password, Integer admin) {
        this.userName = userName;
        this.password = password;
        this.admin = admin;
    }
    
    /** full constructor */
    public User(String userName, String password, String trueName, Integer sex, String year, String month, String day, String contact, Integer incoming, Integer admin, Set askRentLists, Set houses, Set rentOrders, Set askRentOrders) {
        this.userName = userName;
        this.password = password;
        this.trueName = trueName;
        this.sex = sex;
        this.year = year;
        this.month = month;
        this.day = day;
        this.contact = contact;
        this.incoming = incoming;
        this.admin = admin;
        this.askRentLists = askRentLists;
        this.houses = houses;
        this.rentOrders = rentOrders;
        this.askRentOrders = askRentOrders;
    }

   
    // Property accessors

    public Integer getUserId() {
        return this.userId;
    }
    
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public String getTrueName() {
        return this.trueName;
    }
    
    public void setTrueName(String trueName) {
        this.trueName = trueName;
    }

    public Integer getSex() {
        return this.sex;
    }
    
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getYear() {
        return this.year;
    }
    
    public void setYear(String year) {
        this.year = year;
    }

    public String getMonth() {
        return this.month;
    }
    
    public void setMonth(String month) {
        this.month = month;
    }

    public String getDay() {
        return this.day;
    }
    
    public void setDay(String day) {
        this.day = day;
    }

    public String getContact() {
        return this.contact;
    }
    
    public void setContact(String contact) {
        this.contact = contact;
    }

    public Integer getIncoming() {
        return this.incoming;
    }
    
    public void setIncoming(Integer incoming) {
        this.incoming = incoming;
    }

    public Integer getAdmin() {
        return this.admin;
    }
    
    public void setAdmin(Integer admin) {
        this.admin = admin;
    }

    public Set getAskRentLists() {
        return this.askRentLists;
    }
    
    public void setAskRentLists(Set askRentLists) {
        this.askRentLists = askRentLists;
    }

    public Set getHouses() {
        return this.houses;
    }
    
    public void setHouses(Set houses) {
        this.houses = houses;
    }

    public Set getRentOrders() {
        return this.rentOrders;
    }
    
    public void setRentOrders(Set rentOrders) {
        this.rentOrders = rentOrders;
    }

    public Set getAskRentOrders() {
        return this.askRentOrders;
    }
    
    public void setAskRentOrders(Set askRentOrders) {
        this.askRentOrders = askRentOrders;
    }
   








}